public class Test3 {
    public static void main(String[] args) {
        TestEnum testEnum=TestEnum.Red;
        switch (testEnum){
            case Red :
                System.out.println("Red");
                break;
            case Green:
                System.out.println("Green");
                break;
            case Black:
                System.out.println("Black");
                break;
        }
    }
}
